<?php

namespace Modules\DataCheck\Enums;

use Modules\DataCheck\Enums\Tratis\EnumExtend;

enum ErrorEnum: int implements Enum
{
    use EnumExtend;

    case EXCEL = 1000000;
    case IMPORT_SOURCE_FILE = 1000001;
    case DATA_CHECK = 1000002;

    public function message(): string
    {
        return match ($this) {
            self::EXCEL => 'Excel',
            self::IMPORT_SOURCE_FILE => '导入源文件异常',
            self::DATA_CHECK => '数据核对异常',
            default => '',
        };
    }
}